/**
 *   This file is part of Graph-Tool.
 *
 *   Graph-Tool is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   Graph-Tool is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with Graph-Tool.  If not, see <http://www.gnu.org/licenses/>.
 */
package graphtool.graphs;

/**
 * @author a.lunkeit - alunkeit(at)gmail(dot)com
 *
 */
public class Pair<A, B>
{

  private A _first;
  
  private B _second;
  
  /**
   * 
   */
  public Pair()
  {
  }
  
  public Pair( A a, B b )
  {
    this._first = a;
    this._second = b;
  }
  
  public void setKey( A a )
  {
    this._first = a;
  }
  
  public A getKey()
  {
    return this._first;
  }
  
  public void setValue( B b )
  {
    this._second = b;
  }
  
  public B getValue()
  {
    return this._second;
  }

  
}
